layui.use(['table'], function () {
    var table = layui.table;

    /**
     * 集团综合信息--集团已订购资费
     */
    var BlocOrderCharges = {
        tableId: "orderChargesTable",    //表格id
    };

    /**
     * 初始化表格的列
     */
    BlocOrderCharges.initColumn = function () {
        return [[
            {field: 'number', align: "center", title: '序号',type:'numbers',width: 60},
            {field: 'offeringId', align: "center", title: '资费ID'},
            {field: 'offeringName', align: "center", title: '资费名称'},
            {field: 'effectiveDate', align: "center", title: '生效时间',minWidth: 200},
            {field: 'expiriedDate', align: "center", title: '失效时间',minWidth: 200},
            {field: 'apnName', align: "center", title: 'APN'}
        ]];
    };

    // 渲染表格
    table.render({
        elem: '#' + BlocOrderCharges.tableId,
        url: Feng.ctxPath + '/blocSyn/blocOrderCharges?accountId=' + $("#accountId").val(),
        height: "full-98",
        cellMinWidth: 100,
        cols: BlocOrderCharges.initColumn()
    });
});